package com.aerospace.springcloud;

import com.aerospace.myrule.CloudRole;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @Author: Aerospace
 * @Date: 2021/4/15 11:31
 * @Description: Dream begins
 */
@SpringBootApplication
//只适用于Eureka作为注册中心
//@EnableEurekaClient
@EnableDiscoveryClient
//@RibbonClient(name = "CLOUD-PAYMENT-SERVICE")
@RibbonClient(name = "CLOUD-PAYMENT-SERVICE", configuration = CloudRole.class)
public class OrderMain80 {
    public static void main(String[] args) {
        SpringApplication.run(OrderMain80.class,args);
    }
}
